package com.hdj.chapter11;

/**
 * 〈一句话功能简述〉<br>
 *
 * @author hedajiang
 * @create 2017/12/14
 * @since 1.0.0
 */
public class Tree {
    private TreeNode root;

    public Tree(String name) {
        root = new TreeNode(name);
    }

    public TreeNode getRoot() {
        return root;
    }

    public void setRoot(TreeNode root) {
        this.root = root;
    }

    @Override
    public String toString() {
        return "Tree{" +
                "root=" + root +
                '}';
    }
}